package com.zbdx.service;

import com.zbdx.domain.Order;

import java.sql.SQLException;
import java.util.List;

/**
 * TODO 用户业务层
 *
 * @author shengyuee
 * @version 1.0
 * 2024/9/10 16:24
 */
public interface IOrderServcie {
    boolean register(Order order) throws SQLException;

    /**
     * 查找用户信息
     * @param id
     * @return
     * @throws SQLException
     */

    Order findById(int id) throws SQLException;

    /**
     * 删除用户信息
     * @param id
     * @return
     * @throws SQLException
     */

    boolean removeOrderById(int id) throws SQLException;

    boolean addOrder(Order order) throws SQLException;

    /**
     * 查询所有用户
     * @return
     * @throws SQLException
     */
    List<Order> findAll() throws SQLException;
}
